<template>
	<view>
		<button class="aibutten" type="primary" @click="aiChatting"></button>
	</view>
</template>

<script setup>
		// AI聊天功能
	const aiChatting = () => {
		  console.log('打开AI聊天窗口');
		  // 实现AI聊天窗口的逻辑
		  uni.navigateTo({
		  	url:'/pages/ai/index'
		  })
	}

</script>

<style>
.aibutten {
	    position: fixed;
	    right: 30px;
	    bottom: 30px;
	    width: 60px;
	    height: 60px;
	    border-radius: 50%;
		background-image: url("http://172.172.9.57:9999/Ai.png");
		background-size: cover;
	    color: white;
	    font-size: 16px;
	    display: flex;
	    align-items: center;
	    justify-content: center;
	    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	    z-index: 1000;
	    border: none;
	    padding: 0;
	  }
  
</style>
